package com.bwie.reception;

import com.bwie.Goods;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "1908a")
public class ReceptionMq {
    @RabbitHandler
    public  void receptionMq(Goods goods){
        System.out.println("接收mq成功");
    }
}
